<?php

$strMode = $_POST["SelectMode"];

$tID = $_POST["tID"];
$tUSER_ID = $_POST["tUSER_ID"];
$tPASSWORD = $_POST["tPASSWORD"];
$PASSWORDUPDATE = md5($tPASSWORD);
$tPID = $_POST["tPID"];
$tEMAIL = $_POST["tEMAIL"];
$tSTATUS = $_POST["tSTATUS"];

include ("Connect_To_Database.php");


if ($strMode == "UPDATE_NOMAL") {

    $strSQL = "UPDATE giswebdatabase SET USER_ID = '$tUSER_ID' , PASSWORD = '$tPASSWORD' , PID = '$tPID' , EMAIL = '$tEMAIL' , STATUS = '$tSTATUS' WHERE ID='$tID' ";
    $objQuery = mysql_query($strSQL);
} else if ($strMode == "UPDATE_ENCRYTP") {
    $strSQL = "UPDATE giswebdatabase SET USER_ID = '$tUSER_ID' , PASSWORD = '$PASSWORDUPDATE' , PID = '$tPID' , EMAIL = '$tEMAIL' , STATUS = '$tSTATUS' WHERE ID='$tID' ";
    $objQuery = mysql_query($strSQL);
}
$strSQL = "SELECT * FROM giswebdatabase WHERE USER_ID LIKE '%" . $strSearch . "%' ORDER BY ID ASC ";
$objQuery = mysql_query($strSQL) or die("Error Query [" . $strSQL . "]");
?>
